PREVIEW: Today we will use a loop and a string to create a word guessing game!

  • Click Run to play the game.
  • Go into the code editor and change the value of password to a 3-letter word, then Run to play again.
  • Then try changing the value of password to a 4-letter word, or longer!
  • Click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)